package com.ruoyi.boss.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.boss.mapper.TDisputedMapper;
import com.ruoyi.boss.domain.TDisputed;
import com.ruoyi.boss.service.ITDisputedService;

/**
 * 疑义账单Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-17
 */
@Service
public class TDisputedServiceImpl implements ITDisputedService 
{
    @Autowired
    private TDisputedMapper tDisputedMapper;

    /**
     * 查询疑义账单
     * 
     * @param disputedId 疑义账单主键
     * @return 疑义账单
     */
    @Override
    public TDisputed selectTDisputedByDisputedId(Long disputedId)
    {
        return tDisputedMapper.selectTDisputedByDisputedId(disputedId);
    }

    /**
     * 查询疑义账单列表
     * 
     * @param tDisputed 疑义账单
     * @return 疑义账单
     */
    @Override
    public List<TDisputed> selectTDisputedList(TDisputed tDisputed)
    {
        return tDisputedMapper.selectTDisputedList(tDisputed);
    }

    /**
     * 新增疑义账单
     * 
     * @param tDisputed 疑义账单
     * @return 结果
     */
    @Override
    public int insertTDisputed(TDisputed tDisputed)
    {
        return tDisputedMapper.insertTDisputed(tDisputed);
    }

    /**
     * 修改疑义账单
     * 
     * @param tDisputed 疑义账单
     * @return 结果
     */
    @Override
    public int updateTDisputed(TDisputed tDisputed)
    {
        return tDisputedMapper.updateTDisputed(tDisputed);
    }

    /**
     * 批量删除疑义账单
     * 
     * @param disputedIds 需要删除的疑义账单主键
     * @return 结果
     */
    @Override
    public int deleteTDisputedByDisputedIds(Long[] disputedIds)
    {
        return tDisputedMapper.deleteTDisputedByDisputedIds(disputedIds);
    }

    /**
     * 删除疑义账单信息
     * 
     * @param disputedId 疑义账单主键
     * @return 结果
     */
    @Override
    public int deleteTDisputedByDisputedId(Long disputedId)
    {
        return tDisputedMapper.deleteTDisputedByDisputedId(disputedId);
    }
}
